// php 版本 
function dec2bin($num){
    $arr = []
    while($num > 0){
        $arr.push( $num%2 )
        $num = $num/2
    }
    return $arrs
}